package day03;
//算术运算符的演示
public class OperDemo1 {
    public static void main(String[] args) {
         int a = 5,b=5;
         /*
         a++;
         b++;
        System.out.println(a);//6
        System.out.println(b);//6

        int c =5;
        int d = 5;
        int e = c++;
        int f = ++d;
        System.out.println(c);//6
        System.out.println(d);//6
        System.out.println(e);//5
        System.out.println(f);//6

          */
        a--;
        --b;
        System.out.println(a);
        System.out.println(b);

        int c = 5;
        int d = 5;
        int e = c--;
        int f = --d;
        System.out.println(c);
        System.out.println(d);
        System.out.println(e);
        System.out.println(f);




    }
}
